/**
 * 定义ra中面板
 * name属性没有指定
 */
Ext.define('Risk.view.RvPanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.rvpanel',
    layout:  {
        type: 'table',
        // The total column count must be specified here
        columns: 2
    },
    isLoad:false,
    buttonAlign:'center', 
    autoShow: true,
    url:'rv/addOrUpdateRv.do',
    initComponent: function() {
      //初始化Window中的内容
    	this.items = [
            {
                margin:'5 10 5 5',
    	        height:190,
    			xtype: 'pv1fieldSet'
            },{
                margin:'5 10 5 5',
                height:190,
                xtype: 'pv2fieldSet'
            },{
                margin:'5 10 5 5',
                height:190,
                xtype: 'pz1fieldSet'
            },{
                margin:'5 10 5 5',
                height:190,
                xtype: 'pz2fieldSet'
            },{
                margin:'5 10 5 5',
                height:140,
                xtype: 'ce1fieldSet'
            },{
                margin:'5 10 5 5',
                height:140,
                xtype: 'ce2fieldSet'
            },{
                margin:'5 10 5 5',
                width:700,
                height:240,
                xtype: 'rvResult',
                colspan:2
            },{
                xtype:'hidden',
                value:null,
                name:'id'
            }
        ];
        
        this.buttons =[{
                      text:'计         算',
                      action:'calculate'
                },{
                      margin:'0 0 0 10',
                      text:'保存参数',
                      action:'save'
                }];
                
        this.callParent(arguments);
        
    }
    
});